#include "window.h"
#include "windowImp.h"

#include <iostream>

using namespace std;

int main()
{
	Window *pWin;
	LinuxWindowImp linuxImp;
	MacWindowImp macImp;

	pWin = new ClassicalWindow();

	pWin->setImp(&linuxImp);
	pWin->drawText();

	pWin->setImp(&macImp);
	pWin->drawText();

	delete pWin;

	pWin = new ModernWindow();

	pWin->setImp(&linuxImp);
	pWin->drawText();

	pWin->setImp(&macImp);
	pWin->drawText();

	delete pWin;

	return 0;
}
